package com.jeesite.modules.api.dao;

import com.alibaba.fastjson.JSONObject;
import com.jeesite.common.mybatis.annotation.MyBatisDao;
import com.jeesite.modules.information.entity.BasicInformation;
import com.jeesite.modules.information.entity.DailySigns;
import com.jeesite.modules.information.entity.KyAdvice;
import com.jeesite.modules.information.entity.PlatformIdMapping;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@MyBatisDao
public interface BaseInfoDao {

    BasicInformation getBaseInfo(String phone);

    List<JSONObject> listAppointment(@Param("phone") String phone,@Param("startTime") String startTime);

    List<JSONObject> getlistAppointmentByPhone(@Param("phone") String phone);

    JSONObject getLastDaily(String phone);


    List<JSONObject> getDepartmentRanking(String phone, String startTime);

    List<JSONObject> listAdvice(@Param("phone")String phone,@Param("adate") String adate);

    List<JSONObject> listTemprature(String phone);

    List<JSONObject> listHeartRate(String phone);

    List<JSONObject> listBloodPressure(String phone);



    PlatformIdMapping getPlatformIdMapping(@Param("platform_id") String platform_id);

    void updatePlatformIdMapping(PlatformIdMapping platformIdMapping);
    void insertPlatformIdMapping(PlatformIdMapping platformIdMapping);
    void updateBasicInformation(BasicInformation basicInformation);

    Integer insertDailySigns(List<DailySigns> dailySigns);

    void labelUpdate(BasicInformation basicInformation);

    void insertAdvice(KyAdvice kyAdvice);

    void updateOrder(JSONObject order);
}
